import { createApp } from 'vue'
import {createPinia} from 'pinia';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as Icons from '@element-plus/icons-vue';
import App from './App.vue'
import router from './router/index';
import './permission';
const app = createApp(App);
for(const [key,component] of Object.entries(Icons)){
    //注册全局的图标组件
    app.component(key,component);
}
app.use(router);
app.use(createPinia());
app.use(ElementPlus);
app.mount('#app')
